home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
PInterfaces
/
Timer.p
< prev
next >
Wrap
Text File
|
1996-05-01
|
2KB
|
113 lines
{
File: Timer.p
Contains: Time Manager interfaces.
Version: Technology: System 7.5
Release: Universal Interfaces 3.0d3 on Copland DR1
Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
Bugs?: If you find a problem with this file, send the file and version
information (from above) and the problem description to:
Internet: apple.bugs@applelink.apple.com
AppleLink: APPLE.BUGS
}
{$IFC UNDEFINED UsingIncludes}
{$SETC UsingIncludes := 0}
{$ENDC}
{$IFC NOT UsingIncludes}
UNIT Timer;
INTERFACE
{$ENDC}
{$IFC UNDEFINED __TIMER__}
{$SETC __TIMER__ := 1}
{$I+}
{$SETC TimerIncludes := UsingIncludes}
{$SETC UsingIncludes := 1}
{$IFC UNDEFINED __CONDITIONALMACROS__}
{$I ConditionalMacros.p}
{$ENDC}
{$IFC UNDEFINED __TYPES__}
{$I Types.p}
{$ENDC}
{$IFC UNDEFINED __OSUTILS__}
{$I OSUtils.p}
{$ENDC}
{$PUSH}
{$ALIGN MAC68K}
{$LibExport+}
{$IFC FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED }
CONST
{ high bit of qType is set if task is active }
kTMTaskActive = $00008000;
TYPE
TimerProcPtr = Register68kProcPtr; { PROCEDURE Timer(tmTaskPtr: TMTaskPtr); }
TimerUPP = UniversalProcPtr;
TMTaskPtr = ^TMTask;
TMTask = RECORD
qLink: QElemPtr;
qType: INTEGER;
tmAddr: TimerUPP;
tmCount: LONGINT;
tmWakeUp: LONGINT;
tmReserved: LONGINT;
END;
PROCEDURE InsTime(tmTaskPtr: QElemPtr);
{$IFC NOT GENERATINGCFM}
INLINE $205F, $A058;
{$ENDC}
PROCEDURE InsXTime(tmTaskPtr: QElemPtr);
{$IFC NOT GENERATINGCFM}
INLINE $205F, $A458;
{$ENDC}
PROCEDURE PrimeTime(tmTaskPtr: QElemPtr; count: LONGINT);
{$IFC NOT GENERATINGCFM}
INLINE $201F, $205F, $A05A;
{$ENDC}
PROCEDURE RmvTime(tmTaskPtr: QElemPtr);
{$IFC NOT GENERATINGCFM}
INLINE $205F, $A059;
{$ENDC}
PROCEDURE Microseconds(VAR microTickCount: UnsignedWide);
{$IFC NOT GENERATINGCFM}
INLINE $A193, $225F, $22C8, $2280;
{$ENDC}
CONST
uppTimerProcInfo = $0000A002;
FUNCTION NewTimerProc(userRoutine: TimerProcPtr): TimerUPP;
{$IFC NOT GENERATINGCFM }
INLINE $2E9F;
{$ENDC}
PROCEDURE CallTimerProc(tmTaskPtr: TMTaskPtr; userRoutine: TimerUPP);
{$IFC NOT GENERATINGCFM}
{To be implemented: Glue to move parameters into registers.}
{$ENDC}
{$ENDC}
{$ALIGN RESET}
{$POP}
{$SETC UsingIncludes := TimerIncludes}
{$ENDC} {__TIMER__}
{$IFC NOT UsingIncludes}
END.
{$ENDC}